.class Lcom/waiqin365/lightapp/im/gallery/a/c;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/waiqin365/lightapp/im/gallery/a/h;

.field final synthetic c:Lcom/waiqin365/lightapp/im/gallery/a/a;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/gallery/a/a;ILcom/waiqin365/lightapp/im/gallery/a/h;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    iput p2, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->a:I

    iput-object p3, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->b:Lcom/waiqin365/lightapp/im/gallery/a/h;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6

    const/16 v5, 0x9

    const/4 v3, 0x1

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/gallery/a/a;->a(Lcom/waiqin365/lightapp/im/gallery/a/a;)Ljava/util/ArrayList;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->a:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    if-eqz v0, :cond_1

    sget v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    add-int/lit8 v0, v0, -0x1

    sput v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    sget v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    if-lez v0, :cond_0

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget v2, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/gallery/a/a;->b(Lcom/waiqin365/lightapp/im/gallery/a/a;)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/gallery/a/a;->a(Lcom/waiqin365/lightapp/im/gallery/a/a;)Ljava/util/ArrayList;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->a:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v4, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->b:Lcom/waiqin365/lightapp/im/gallery/a/h;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020314

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_1
    return-void

    :cond_0
    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto :goto_0

    :cond_1
    sget v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    if-ge v0, v5, :cond_2

    sget v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    add-int/lit8 v0, v0, 0x1

    sput v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget v2, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->a:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/gallery/a/a;->a(Lcom/waiqin365/lightapp/im/gallery/a/a;)Ljava/util/ArrayList;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->a:I

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/im/gallery/a/k;

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/im/gallery/a/k;->b:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->b:Lcom/waiqin365/lightapp/im/gallery/a/h;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/gallery/a/h;->b:Landroid/widget/ImageView;

    const v1, 0x7f020315

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_2
    sget-object v0, Lcom/waiqin365/lightapp/im/gallery/GalleryActivity;->e:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/gallery/a/a;->b(Lcom/waiqin365/lightapp/im/gallery/a/a;)Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/gallery/a/a;->c(Lcom/waiqin365/lightapp/im/gallery/a/a;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/gallery/a/c;->c:Lcom/waiqin365/lightapp/im/gallery/a/a;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/gallery/a/a;->c(Lcom/waiqin365/lightapp/im/gallery/a/a;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f080543

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-array v2, v3, [Ljava/lang/Object;

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, v4

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_2
.end method
